package com.softer.wxzj.mapper;

import com.softer.wxzj.entity.AccCalculateInterestDetail;
import com.softer.wxzj.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zcz
 * @date 2019/7/29
 */
@Repository
public interface AccCalculateInterestDetailMapper  extends BaseMapper<AccCalculateInterestDetail> {
    /**
     * 获取预结息状态  0 未预结息 >0 预结息
     * @param id
     * @return
     */
    Integer getCalcInterestState(@Param("id") String id);

    List<AccCalculateInterestDetail> getCalcInterestDetails(@Param("id") String id);

    /**
     * 根据结息编号删除结息详情
     * @param rateNo
     * @return
     */
    int deleteByRateNo(String rateNo);
}